//******************************************************************************
//  ParameterModifier.java   Author: Lewis/Loftus
//
//  Demonstrates the effects of changing parameter values.
//******************************************************************************

public class ParameterModifier
{
   //---------------------------------------------------------------------------
   //  Modifier the parameters, painting their values before and
   //  after making the changes.
   //---------------------------------------------------------------------------
   public void changeValues(int f1, Num f2, Num f3)
   {
       System.out.println("Before calling changeValues: ");
       System.out.println("f1 \t f2\t      f3");
       System.out.println(f1 + "\t" + f2 + "\t" + f3 + "\n");

       f1 = 999;
       f2.setValue(888);
       f3 = new Num(777);

       System.out.println("After calling changeValues:");
       System.out.println("f1 \t f2\t     f3");
       System.out.println(f1 + "\t" + f2 + "\t" + f3 + "\n");
   }
}
